package my.components
{
	import my.skin.MyButtonSkin;
	
	import spark.components.Button;
	//-------定义了按钮的显示-----
	[Style(name="iconUp",type="*")]
	[Style(name="iconOver",type="*")]
	[Style(name="iconDown",type="*")]
	[Style(name="iconDisable",type="*")]
	[Style(name="iconWating",type="*")]
	
	[Style(name="brightUp",type="Number")]
	[Style(name="brightDown",type="Number")]
	[Style(name="brightOver",type="Number")]
	[Style(name="brightDisable",type="Number")]
	[Style(name="brightWaiting",type="Number")]	
	
	[Style(name="boderVisable",type="*")]	//边框的显示隐藏
	[Style(name="btnCornerRadius",type="*")] //圆角的弧度	
	
	[Style(name="widthUp",type="uint")]
	[Style(name="widthDown",type="uint")]
	[Style(name="widthOver",type="uint")]
	[Style(name="widthEnable", type="uint")]
	[Style(name="widthDisable",type="uint")]
	[Style(name="widthWaiting",type="uint")]
	
	[Style(name="heightUp", type="uint")]
	[Style(name="heightDown", type="uint")]
	[Style(name="heightOver", type="uint")]
	[Style(name="heightEnable", type="uint")]
	[Style(name="heightDisable", type="uint")]
	[Style(name="heightWaiting", type="uint")]
	
	public class MyButton extends Button
	{
		public function MyButton()
		{
			super();
			if(!this.getStyle("skinclass"))
				this.setStyle("skinClass",MyButtonSkin);
		}
	}
}